workspace "zbot"
	configurations { "Debug", "Release" }
	platforms { "Win32", "Win64", "Linux" }
	location "build"
	includedirs{
		"./src",
		"./support",
		"./support/libxml",
		"./support/friso/src",
		"./support/lua",
	}
	
	
filter { "platforms:Win32" }
    system "windows"
    architecture "x32"
	defines { "_WIN32", "WIN32"}
	
filter { "platforms:Win64" }
    system "windows"
    architecture "x64"	
	defines { "_WIN32", "WIN32" }
	
filter { "platforms:Linux" }
    system "linux"
    architecture "x64"	
	defines { "LINUX", "linux" ,"POSIX"}
	
	
filter "configurations:Debug"
	defines { "DEBUG" , "_DEBUG"}
	symbols "On"
	optimize "Debug"
	
filter "configurations:Release"
	defines { "NDEBUG" }
	symbols "Off"
	optimize "Speed"
	vectorextensions "SSE2"
	

project "zbot"
	kind "staticLib"
	language "C++"
	
	files { 
		"./src/*.h",
		"./src/*.cpp",
		"./src/*.c",
		"./support/libxml/libxml/*.h",
		"./support/libxml/src/*.c",
		"./support/friso/src/*.h",
		"./support/friso/src/*.c",
		
		"./support/lua/*.h",
		"./support/lua/*.c",		
	}
	
	--filter { "platforms:Linux" }

	filter { "platforms:Win32" }
		includedirs{
			"./src/port/",
		}
		files { 
			"./src/port/*.h", "./src/port/*.c",	
			"./support/std_utils/*.h",
			"./support/std_utils/*.cpp",
		}
project "test"
	kind "ConsoleApp"
	language "C++"
	
	includedirs{
		"./src",
	}
	files { 
		"./test_app/*.h",
		"./test_app/*.cpp",
	}
	links{"zbot"}
filter { "platforms:Win32" }
	links{
		"ws2_32.lib",
	}
	
filter { "platforms:Linux" }
	links{"pthread","rt"}

	
	
	
	